package com.teradyne.merlin2.ui.server.models;

import java.io.Serializable;

public class OrderLine implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -7243164894290408376L;
	private int orderLineId;
	private int orderLineNo;
	private String partNo;
	private String partDesc;
	private String notes;
	private String serviceType;
	private int quantity;
	private String statusOrderLine;
	private String externalStatusOrderLine;
	private int orderHeaderNumber;
	private String systemSerialNumber;
	private String teradynePlatform;
	private String systemType;
	private String partSerialNumber;
	private String repairCode;
	private String[] invalidReason;
	private String agreementNo;
	private String agreementType;
	private String statusIdOrderLine;
	private String controlNo;
	private String lineNo;
	private String serviceDescription;
	private String status;
	private String customerRequirement;
	private String invoiceComment;
	private String coordinatorComment;
	private String oemPartSerialNumber;
	private String RequestedControlNumber;
	private int invalidReasonType;
	private String[] agentInvalidReason;
	private boolean validPartNo;
	private boolean obsolete;
	private String cancelMessage;
	private boolean sendEmail;
	private boolean sendInbox;
	private boolean maximumQuantityExceeded;

	public OrderLine() {
	}

	public String[] getInvalidReason() {
		return invalidReason;
	}

	public void setInvalidReason(String[] invalidReason) {
		this.invalidReason = invalidReason;
	}

	public int getOrderLineId() {
		return orderLineId;
	}

	public void setOrderLineId(int orderLineId) {
		this.orderLineId = orderLineId;
	}

	public void setOrderLineNo(int orderLineNo) {
		this.orderLineNo = orderLineNo;
	}

	public int getOrderLineNo() {
		return orderLineNo;
	}

	public void setPartNo(String partNo) {
		this.partNo = partNo;
	}

	public String getPartNo() {
		return partNo;
	}

	public void setPartDesc(String partDesc) {
		this.partDesc = partDesc;
	}

	public String getPartDesc() {
		return partDesc;
	}

	public void setNotes(String notes) {
		this.notes = notes;
	}

	public String getNotes() {
		return notes;
	}

	public void setServiceType(String serviceType) {
		this.serviceType = serviceType;
	}

	public String getServiceType() {
		return serviceType;
	}

	public void setQuantity(int quantity) {
		this.quantity = quantity;
	}

	public int getQuantity() {
		return quantity;
	}

	public void setStatusOrderLine(String statusOrderLine) {
		this.statusOrderLine = statusOrderLine;
	}

	public String getStatusOrderLine() {
		return statusOrderLine;
	}

	public String getExternalStatusOrderLine() {
		return externalStatusOrderLine;
	}

	public void setExternalStatusOrderLine(String externalStatusOrderLine) {
		this.externalStatusOrderLine = externalStatusOrderLine;
	}

	public int getOrderHeaderNumber() {
		return orderHeaderNumber;
	}

	public void setOrderHeaderNumber(int orderHeaderNumber) {
		this.orderHeaderNumber = orderHeaderNumber;
	}

	public String getSystemSerialNumber() {
		return systemSerialNumber;
	}

	public void setSystemSerialNumber(String systemSerialNumber) {
		this.systemSerialNumber = systemSerialNumber;
	}

	public String getTeradynePlatform() {
		return teradynePlatform;
	}

	public void setTeradynePlatform(String teradynePlatform) {
		this.teradynePlatform = teradynePlatform;
	}

	public String getSystemType() {
		return systemType;
	}

	public void setSystemType(String systemType) {
		this.systemType = systemType;
	}

	public String getPartSerialNumber() {
		return partSerialNumber;
	}

	public void setPartSerialNumber(String partSerialNumber) {
		this.partSerialNumber = partSerialNumber;
	}

	public String getRepairCode() {
		return repairCode;
	}

	public void setRepairCode(String repairCode) {
		this.repairCode = repairCode;
	}

	public String getAgreementNo() {
		return agreementNo;
	}

	public void setAgreementNo(String agreementNo) {
		this.agreementNo = agreementNo;
	}

	public String getAgreementType() {
		return agreementType;
	}

	public void setAgreementType(String agreementType) {
		this.agreementType = agreementType;
	}

	public String getStatusIdOrderLine() {
		return statusIdOrderLine;
	}

	public void setStatusIdOrderLine(String statusIdOrderLine) {
		this.statusIdOrderLine = statusIdOrderLine;
	}

	public String getControlNo() {
		return controlNo;
	}

	public void setControlNo(String controlNo) {
		this.controlNo = controlNo;
	}

	public String getLineNo() {
		return lineNo;
	}

	public void setLineNo(String lineNo) {
		this.lineNo = lineNo;
	}

	public String getServiceDescription() {
		return serviceDescription;
	}

	public void setServiceDescription(String serviceDescription) {
		this.serviceDescription = serviceDescription;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getCustomerRequirement() {
		return customerRequirement;
	}

	public void setCustomerRequirement(String customerRequirement) {
		this.customerRequirement = customerRequirement;
	}

	public String getInvoiceComment() {
		return invoiceComment;
	}

	public void setInvoiceComment(String invoiceComment) {
		this.invoiceComment = invoiceComment;
	}

	public String getCoordinatorComment() {
		return coordinatorComment;
	}

	public void setCoordinatorComment(String coordinatorComment) {
		this.coordinatorComment = coordinatorComment;
	}

	public String getOemPartSerialNumber() {
		return oemPartSerialNumber;
	}

	public void setOemPartSerialNumber(String oemPartSerialNumber) {
		this.oemPartSerialNumber = oemPartSerialNumber;
	}

	public String getRequestedControlNumber() {
		return RequestedControlNumber;
	}

	public void setRequestedControlNumber(String requestedControlNumber) {
		RequestedControlNumber = requestedControlNumber;
	}

	public int getInvalidReasonType() {
		return invalidReasonType;
	}

	public void setInvalidReasonType(int invalidReasonType) {
		this.invalidReasonType = invalidReasonType;
	}

	public String[] getAgentInvalidReason() {
		return agentInvalidReason;
	}

	public void setAgentInvalidReason(String[] agentInvalidReason) {
		this.agentInvalidReason = agentInvalidReason;
	}

	public boolean isValidPartNo() {
		return validPartNo;
	}

	public void setValidPartNo(boolean validPartNo) {
		this.validPartNo = validPartNo;
	}

	public boolean isObsolete() {
		return obsolete;
	}

	public void setObsolete(boolean obsolete) {
		this.obsolete = obsolete;
	}

	public String getCancelMessage() {
		return cancelMessage;
	}

	public void setCancelMessage(String cancelMessage) {
		this.cancelMessage = cancelMessage;
	}

	public boolean isSendEmail() {
		return sendEmail;
	}

	public void setSendEmail(boolean sendEmail) {
		this.sendEmail = sendEmail;
	}

	public boolean isSendInbox() {
		return sendInbox;
	}

	public void setSendInbox(boolean sendInbox) {
		this.sendInbox = sendInbox;
	}

	public boolean isMaximumQuantityExceeded() {
		return maximumQuantityExceeded;
	}

	public void setMaximumQuantityExceeded(boolean maximumQuantityExceeded) {
		this.maximumQuantityExceeded = maximumQuantityExceeded;
	}

//	public void copy(PartRequestDetail partRequestDetail, PartRequestHeader partRequestHeader) {
//		this.partNo = partRequestDetail.getPartNumber() != null ? partRequestDetail.getPartNumber() : "";
//		this.serviceType = partRequestDetail.getServiceType() != null ? partRequestDetail.getServiceType() : "";
//		this.orderLineNo = partRequestDetail.getRequestDetailLineNo().intValue();
//		this.partDesc = partRequestDetail.getRequestedTerPartDescn() != null ? partRequestDetail.getRequestedTerPartDescn() : "";
//		this.quantity = partRequestDetail.getRequestQuantity().intValue();
//		this.orderLineId = (int) partRequestDetail.getPartRequestDetailId();
//		this.systemSerialNumber = partRequestDetail.getSystemSerialNumber();
//		this.partSerialNumber = partRequestDetail.getAvailableTerPartSerialNumb();
//		this.statusOrderLine = partRequestDetail.getStatus() != null ? partRequestDetail.getStatus().getStatusInternal() : "";
//		this.externalStatusOrderLine = partRequestDetail.getStatus() != null ? partRequestDetail.getStatus().getStatusExternal() : "";
//		this.statusIdOrderLine = partRequestDetail.getStatus() != null ? partRequestDetail.getStatus().getStatus() : "";
//		this.agreementNo = partRequestDetail.getAgreementNumber() != null ? partRequestDetail.getAgreementNumber() : "";
//		this.agreementType = partRequestDetail.getAgreementTypeCode() != null ? partRequestDetail.getAgreementTypeCode() : "";
//		this.controlNo = partRequestDetail.getControlNumber() != null ? partRequestDetail.getControlNumber() : "";
//		this.lineNo = partRequestDetail.getLineNumber() != null ? partRequestDetail.getLineNumber() : "";
//		this.serviceDescription = partRequestDetail.getServiceTypeDescn() != null ? partRequestDetail.getServiceTypeDescn() : "";
//		this.repairCode = partRequestDetail.getTerPartRepairType() != null ? partRequestDetail.getTerPartRepairType() : "";
//		this.systemType = partRequestDetail.getRequestDetailSystemType() != null ? partRequestDetail.getRequestDetailSystemType() : "";
//		this.notes = partRequestDetail.getRequestDetailComments() != null ? partRequestDetail.getRequestDetailComments() : "";
//		this.invoiceComment = partRequestDetail.getSpecialInvoiceComment() != null ? partRequestDetail.getSpecialInvoiceComment() : "";
//		this.coordinatorComment = partRequestDetail.getSpecialInvoiceComment() != null ? partRequestDetail.getSpecialInvoiceComment() : "";
//		this.oemPartSerialNumber = partRequestDetail.getRequestedOemPartSerialNo() != null ? partRequestDetail.getRequestedOemPartSerialNo() : "";
//
//		this.teradynePlatform = partRequestHeader.getTerBusinessGroup() != null ? partRequestHeader.getTerBusinessGroup() : "";
//
//	}

}
